package cn.com.dcsgo;

import cn.com.dcsgo.model.order.CartInfo;
import cn.com.dcsgo.vo.order.OrderConfirmVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
 * ActivityFeignClient
 *
 * @author Dcsgo
 * @since 2025/4/27 12:30
 */
@FeignClient("service-activity")
public interface ActivityFeignClient {
    @GetMapping("api/activity/sku")
    Map<Long, List<String>> getActivitySimpleInfo(@RequestParam List<Long> ids);

    @GetMapping("api/activity/sku/{skuId}/user/{userId}/coupon")
    Map<String, Object> getActivityAndCouponInfo(@PathVariable Long skuId,
                                                 @PathVariable Long userId);

    @PostMapping("api/activity/user/{userId}/cart/settlement")
    OrderConfirmVo getCartSettlementInformation(@PathVariable Long userId, @RequestBody List<CartInfo> items);
}
